import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('../views/Search.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../views/My.vue')
  },
  {
    path:'/news',
    name:"News",
    component: () => import('../views/News.vue'),
  },
  {
    path:'/memo',
    name:"Memo",
    component: () => import('../views/Memo.vue'),
  },
  {
    path:'/editor/:id',
    name:"Editor",
    component: () => import('../views/Editor.vue'),
  },
  {
    path:'/clickMe',
    name:"ClickMe",
    component: () => import('../views/ClickMe.vue'),
  }
]

const router = new VueRouter({
  routes
})

export default router
